package com.qiang.test02;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Demo05 {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("day12\\ee.txt");

        Scanner sc= new Scanner(System.in);
        System.out.println("请输入账户名");
        String username = sc.next();

        System.out.println("请输入密码");
        String password = sc.next();

        fw.write(username);
        fw.write(password);
        fw.close();
    }
}
